import 'package:winkai/generated/json/base/json_field.dart';
import 'package:winkai/generated/json/g_iap_rsp.g.dart';
import 'dart:convert';
export 'package:winkai/generated/json/g_iap_rsp.g.dart';

@JsonSerializable()
class GIAPRsp {
	GIAPRspEntity? entity;
	List<dynamic>? checks;

	GIAPRsp();

	factory GIAPRsp.fromJson(Map<String, dynamic> json) => $GIAPRspFromJson(json);

	Map<String, dynamic> toJson() => $GIAPRspToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class GIAPRspEntity {
	String? environment;
	bool? ok;
	@JSONField(name: "device_id")
	String? deviceId;
	@JSONField(name: "expires_date_ms")
	int? expiresDateMs;

	GIAPRspEntity();

	factory GIAPRspEntity.fromJson(Map<String, dynamic> json) => $GIAPRspEntityFromJson(json);

	Map<String, dynamic> toJson() => $GIAPRspEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}